<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>{$head[title]}</title>
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />

<link href="{SKIN_PATH}search/common.css" rel="stylesheet" type="text/css">
<link href="{SKIN_PATH}search/search_news.css" rel="stylesheet" type="text/css">
<link type="text/css" rel="stylesheet" href="{SKIN_PATH}search/jquery.autocomplete.css">
<script language="JavaScript" src="images/js/jquery.min.js"></script>
<script src="images/js/hover.js" type="text/javascript"></script>
<script charset="UTF-8" type="text/javascript" src="images/js/search/common.js"></script>
<script charset="UTF-8" type="text/javascript" src="images/js/search/recode.orther.js"></script>
<script charset="UTF-8" type="text/javascript" src="images/js/search/jquery.autocomplete.min.js"></script>
<script charset="UTF-8" type="text/javascript" src="images/js/search/publiccommon.js"></script>
<script charset="UTF-8" type="text/javascript" src="images/js/search/Cookie.js"></script>
<style type="text/css">
.search_area{}
</style>
</head>
<body>
<h1 style="margin:auto;text-align:center;">
    <a href="#" title="颐搜"><img src="images/logo_mini.png" alt="" title=""></a>
 </h1>
<div class="searchArea">
	  <script charset="UTF-8" type="text/javascript">
$(document).ready(function() {// do something here
	$(".search_label li").mouseover(
		function()	{
			$(this).addClass("over");
		}
	 )
	 $(".search_label li").mouseout(
		function()	{
			$(this).removeClass("over");
		}
	 )
	 $(".search_input").click (
		function(){
			$('.search_box').show();
		}
	 )
	$('#type_{$type}').addClass('current')
});
function set_type(type)
{
	$('#type').val(type);
	
	q = $('#q').val();
	
    if(q)
	{	
	    $('#search').submit();
	}
	else
	{
		$('#search_form>li').removeClass('current');
		$('#type_'+type).addClass('current');
	}
}

</script>

 <div class="search_area" style="position:relative;z-index:2;">
   <div class="search_label">
        <ul id="search_form">
		  			 <li id="type_all" class="" onclick="set_type('all')">全部</li>
					 {loop $types $k $name}
					 <li id="type_{$k}" class="" onclick="set_type('{$k}')">{$name}</li>
					 {/loop}					 
        </ul>
  </div>
  
  <div class="search_area1">
    <div class="search_l">
	<form name="search" id="search">
		<input type="hidden" name="type" value="{$type}" id="type"/>
        <input type="text" class="search_input" name="q" id="q" autocomplete="off" value="{$q}" style="color:#333" onclick="javascript:if(this.value=='请您输入要查询的关键词'){this.value='';this.style.color='#333';}">
        <input type="submit" value="搜索" class="search_but" name="s" id="button">
	</form>
        <div class="search_box1">
        	<ul>

            </ul>
        </div>
    </div>
    <div class="clear"></div>
  </div>
  <div class="search_key">
      <strong>热点推荐：</strong>
	  {get sql="SELECT `tag` FROM phpcms_keyword ORDER BY hits DESC" rows="6"}<a href="javascript:$('#q').val('{$r[tag]}');void(0);">{$r['tag']}</a> {/get}

  </div>
  </div>
</div>

<div class="sear_artbox">
<div>

</div>
    <div class="clear"></div>
</div>
<!--end main-->
{template 'phpcms','footer'}